<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<s:layout-definition>
<html>
<s:useActionBean beanclass="cz.muni.fi.pa165.travelagency.web.frontend.FrontendActionBean" var="frontendActionBean"/>
<head>
  <title><f:message key="title"/></title>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/frontend/style.css" />
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/templatemo_style.css" />
  <s:layout-component name="head"/>
</head>
<body>
<div id="templatemo_header_wrapper">
    <div id="templatemo_header">
    	<div id="site_title">
        </div>
        <p><f:message key="motto"/></p>
    </div> <!-- end of templatemo_header -->

</div> <!-- end of templatemo_menu_wrapper -->
<div id="templatemo_menu_wrapper">
    <div id="templatemo_menu">
        <ul>
            <li><s:link href="/index.jsp"><f:message key="home"/></s:link></li> 
            <li><s:link href="/package-tour/list"><f:message key="package-tours"/></s:link></li> 
            <shiro:hasRole name="admin">
                <li><s:link href="/admin"><f:message key="administration"/></s:link></li>
                <li><s:link href="/security/logout"><f:message key="user.logout"/></s:link></li>
            </shiro:hasRole>
            <shiro:lacksRole name="admin">
                <li><s:link href="/login.jsp"><f:message key="user.login"/></s:link></li>
            </shiro:lacksRole>
        </ul>    	
    </div> <!-- end of templatemo_menu -->
</div>

<div id="templatemo_content_wrapper">

    <div id="templatemo_content">
    	<div class="content_box">
            
            <s:layout-component name="content"/>
        
            <div class="cleaner"></div>
        </div>
        <div class="content_box_bottom"></div>
    </div> <!-- end of content -->
    <div class="cleaner"></div>
</div>

<div id="templatemo_footer_wrapper">
    <div id="templatemo_footer">
        <ul class="footer_menu">
            <li><s:link href="/index.jsp"><f:message key="home"/></s:link></li> 
            <li><s:link href="/package-tour/list"><f:message key="package-tours"/></s:link></li>
            
            <shiro:hasRole name="admin">
                <li class="last_menu"><s:link href="/admin"><f:message key="administration"/></s:link></li>
            </shiro:hasRole>
        </ul>        

        Copyright © 2012 <a href="#">Travel Agency</a> | 
        Designed by <a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a> 
    </div>
</div>
</body>
</html>
</s:layout-definition>